package com.yyfax.pay.third.model.to.yyfax;

import com.yyfax.framework.model.Content;

/**
 * 请求参数
 * 
 * @author buyi
 * @date 2017-04-12 19:30:50
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class WebFormYYContent<T extends Content> extends Content {
	/** 请求路径 */
	private String url;
	/** 支付模块回显地址 */
	private String returnUrl;
	/** 支付模块异步回调地址 */
	private String notifyUrl;
	/** 表单实体对象 */
	private T form;

	/** 请求参数 */
	// private Map<String, String> form = new HashMap<String, String>();

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getReturnUrl() {
		return returnUrl;
	}

	public void setReturnUrl(String returnUrl) {
		this.returnUrl = returnUrl;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public T getForm() {
		return form;
	}

	public void setForm(T form) {
		this.form = form;
	}

	// public static void main(String[] args) {
	// WebFormYYContent<PayWebFormContent> content = new WebFormYYContent<PayWebFormContent>();
	//
	// content.setUrl("/");
	//
	// PayWebFormContent payWebFormContent = new PayWebFormContent();
	//
	// payWebFormContent.setPayOrderId("PI00000000000001");
	// payWebFormContent.setUserIp("172.30.2.64");
	// payWebFormContent.setMerchantCode("MC0001");
	//
	// content.setForm(payWebFormContent);
	// System.out.println(content);
	// }
}
